package com.irdstudio.efp.flow.route;

import java.util.Map;

import com.irdstudio.efp.flow.executor.impl.AbstractRoutePluginExecutor;

/**
 * 
 * 路由规则执行
 * 
 * @author Cytus_
 * @since 2018年5月15日 上午10:32:40
 * @version 1.0
 *
 */
@Deprecated
public abstract class AbstractRouteRuleExecutor extends AbstractRoutePluginExecutor {

	public abstract boolean routeRuleCall(String bizSerno, String ruleCollId) throws Exception;
	
	private String[] registerArgs = {"evo.bizSerno", "route.bizRouteRule"};

	public String[] getRegisterArgs() {
		return registerArgs;
	}

	public boolean execute(Map<String, String> params) throws Exception {
		return routeRuleCall(params.get(registerArgs[0]), params.get(registerArgs[1]));
	}
	
}
